package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-报修，抢修管理(OperationMaintain)表实体类
 *
 * @author yxy
 * @since 2024-10-28 14:36:38
 */
@Data
@ApiModel("运维-报修，抢修管理")
@TableName(value = "tb_operation_maintain")
public class OperationMaintain extends Model<OperationMaintain> implements Serializable {
    private static final long serialVersionUID = 145487085858447240L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("故障名称")
    private String faultName;

    @ApiModelProperty("设备")
    private Long deviceId;

    @ApiModelProperty("设备名称")
    @TableField(exist = false)
    private String deviceName;

    @ApiModelProperty("类型0保修 1抢修")
    private Integer type;

    @ApiModelProperty("故障类型")
    private Integer faultType;

    @ApiModelProperty("故障描述")
    private String faultRemark;

    @ApiModelProperty("紧急程度0低 1中 2高")
    private Integer emergencyDegree;

    @ApiModelProperty("要求完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date requiresFinishTime;

    @ApiModelProperty("处理人")
    private Long handler;

    @ApiModelProperty("处理人姓名")
    @TableField(exist = false)
    private String handlerName;

    @ApiModelProperty("商家")
    private Long merchantId;
    @ApiModelProperty("商家名称")
    @TableField(exist = false)
    private String merchantName;
    @ApiModelProperty("提出者")
    private Long presenter;

    @ApiModelProperty("提出者姓名")
    @TableField(exist = false)
    private String presenterName;

    @ApiModelProperty("实际完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date realityFinishTime;

    @ApiModelProperty("状态0已完成 1待完成 2待处理 ")
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("处理结果0正常 1异常")
    private Integer result;
    @ApiModelProperty("文件")
    private String file;
    @ApiModelProperty("问题描述")
    private String describeStr;
    @ApiModelProperty("备注")
    private String remark;


}
